<template>
  <div class="body">
    <el-container>
      <!-- 头部导航栏 -->
      <el-header>
        <Index></Index>
      </el-header>
      <!-- 左侧边栏 -->

      <el-container>
        <el-container>
          <el-main>
            <el-tabs
              tab-position="top"
              v-model="activeName"
              @tab-click="handleClick"
            >
              <!-- 一共十个 -->
              <el-tab-pane label="光伏优化器" name="first">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14"></div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign1"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="光伏优化器控制命令:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign1.控制命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvodata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏优化器控制模式:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign1.控制模式"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvodata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏优化器功率限值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign1.功率限值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvodata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>
              <el-tab-pane label="三联供参数" name="second">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14"></div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="三联供PLC系统模式写入:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign2.plc系统模式写入"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcchpdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="三联供PLC远程启动:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign2.plc远程启动"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcchpdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="三联供PLC远程停机:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign2.plc远程停机"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcchpdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="三联供PLC远程急停:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign2.plc远程急停"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcchpdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="三联供PLC SP_溴化锂出水温度设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign2.plcsp_溴化锂出水温度设定
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcchpdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>
              <el-tab-pane label="MMC参数" name="third">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="MMC开关机控制:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign3.开关机状态"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign3.开关机状态 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykmmcdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC远程故障复归:"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.远程故障复归"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykmmcdata2()"
                                    style="margin-left:20px;"
                                    >远程故障复归</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流CV&CC&CP:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign3.直流CVCCCP"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign3.直流CVCCCP == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykmmcdata3()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流恒压控制:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign3.直流恒压控制"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign3.直流恒压控制 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykmmcdata4()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流恒流控制:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign3.直流恒流控制"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign3.直流恒流控制 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykmmcdata5()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流恒功率控制:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign3.直流恒功率控制"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign3.直流恒功率控制 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykmmcdata6()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="MMC直流侧电压控制值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.直流侧电压控制值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytmmcdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直侧输出电流控制值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.直侧输出电流控制值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytmmcdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直侧输入电流控制值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.直侧输入电流控制值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytmmcdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流输出功率控制值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.直流输出功率控制值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytmmcdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="MMC直流输入功率控制值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign3.直流输入功率控制值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytmmcdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>
              <el-tab-pane label="电容储能参数" name="fourth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC系统开机:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign4.系统开机"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign4.系统开机 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykcapdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC系统停机:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign4.系统停机"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign4.系统停机 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykcapdata2()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC系统清除故障(PCS):"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                   :disabled="true"
                                    v-model="formLabelAlign4.系统清除故障PCS"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykcapdata3()"
                                    style="margin-left:20px;"
                                    >系统清除故障</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC低压侧支路1: 直流控制模式:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign4.低压侧支路1直流控制模式
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcapdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC低压侧支路1: 直流电流设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign4.低压侧支路1直流电流设置
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcapdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="电容DCDC低压侧支路1: 直流功率设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign4.低压侧支路1直流功率设置
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytcapdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>
              <!-- <el-tab-pane label="隔离柜电表参数" name="fifth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表1第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign51.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表1第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign51.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表2第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign52.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表2第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign52.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表3第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign53.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表3第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign53.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表4第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign54.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="隔离柜电表4第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign54.第2路继电器"
                              ></el-input>
                            </el-form-item>
                          </el-form>
                          <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                          <div id="table14"></div>
                        </el-row>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane> -->
              <el-tab-pane label="负荷总回路参数" name="sixth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign5"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="负荷总回路DCDC启动/停机命令:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign5.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign5.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykloaddata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <!-- <el-form-item class="formitem2" label="角色:">
                              <el-select
                                v-model="formLabelAlign2.role"
                                placeholder="请选择角色"
                              >
                                <el-option
                                  v-for="item in options"
                                  :key="item.value"
                                  :label="item.label"
                                  :value="item.value"
                                >
                                </el-option>
                              </el-select>
                            </el-form-item> -->
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign6"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="负荷总回路DCDC工作模式:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign5.工作模式"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytloaddata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="负荷总回路DCDCA口设置电压:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign5.a口设置电压"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytloaddata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="负荷总回路DCDCB口设置电压:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign5.b口设置电压"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytloaddata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>
              <!-- <el-tab-pane label="一体化设备参数" name="seventh">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表1第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign71.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表1第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign71.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表2第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign72.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表2第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign72.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表3第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign73.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表3第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign73.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表4第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign74.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表4第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign74.第2路继电器"
                              ></el-input>
                            </el-form-item>
                          </el-form>
                          <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表5第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign75.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表5第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign75.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表6第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign76.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表6第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign76.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表7第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign77.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表7第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign77.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表8第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign78.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="一体化设备电表8第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign78.第2路继电器"
                              ></el-input>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane> -->
              <el-tab-pane label="光伏设备参数" name="eighth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC启动/停机命令:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign6.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign6.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykpvdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC故障状态清除命令:"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign6.故障状态清除命令"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykpvdata2()"
                                    style="margin-left:20px;"
                                    >故障状态清除</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC工作模式设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign6.工作模式设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC输入侧电压设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign6.输入侧电压设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC电池侧恒压电流设定(低压侧):"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign6.电池侧恒压电流设定低压侧
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC功率设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign6.功率设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="光伏DCDC电池侧电压设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign6.电池侧电压设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <!-- <el-form-item
                              class="formitem2"
                              label="光伏优化器控制命令:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign7.控制命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata6()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item> -->
                            <!-- <el-form-item
                              class="formitem2"
                              label="光伏优化器控制模式:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign7.控制模式"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata7()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item> -->
                            <!-- <el-form-item
                              class="formitem2"
                              label="光伏优化器功率限值:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign7.功率限值"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytpvdata8()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item> -->
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>

              <el-tab-pane label="交直流设备参数" name="ninth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC启动/停机命令:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign8.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign8.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykacdcdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC故障状态清除命令:"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.故障状态清除命令"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykacdcdata2()"
                                    style="margin-left:20px;"
                                    >故障状态清除</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC启动/停机命令"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign9.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign9.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykdcdcdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC故障状态清除命令"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign9.故障状态清除命令"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykdcdcdata2()"
                                    style="margin-left:20px;"
                                    >故障状态清除</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC工作模式设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.工作模式设置"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC直流电压设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.直流电压设置"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC恒压模式电流限制:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.恒压模式电流限制"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC有功功率设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.有功功率设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC无功Q设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.无功Q设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC交流电压设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.交流电压设置"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata6()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流ACDC交流频率设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign8.交流频率设置"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytacdcdata7()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC工作模式设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign9.工作模式设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytdcdcdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC电池侧恒压输出电压设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign9.电池侧恒压输出电压设定
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytdcdcdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC电池侧恒压模式限流设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign9.电池侧恒压模式限流设定
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytdcdcdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC恒功率模式功率值设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign9.恒功率模式功率值设定
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytdcdcdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>

                            <el-form-item
                              class="formitem2"
                              label="交直流DCDC母线侧电压:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign9.母线侧电压"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytdcdcdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>

                          <!-- <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upytdata()"
                              >确定</el-button
                            >
                          </span> -->
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>

              <el-tab-pane label="储能设备参数" name="tenth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign12"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC启动/停机命令:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign10.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign10.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykstdata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC故障状态清除命令:"
                            >
                              <el-row>
                                <!-- <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign10.故障状态清除命令"
                                  ></el-input>
                                </el-col> -->
                                <el-col :span="24">
                                  <el-button
                                    type="primary"
                                    @click="upykstdata2()"
                                    style="margin-left:20px;"
                                    >故障状态清除命令</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC工作模式设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign10.工作模式设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytstdata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC电池侧电压设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign10.电池侧电压设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytstdata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC电池侧恒压电流设定(低压侧):"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="
                                      formLabelAlign10.电池侧恒压电流设定低压侧
                                    "
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytstdata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC功率设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign10.功率设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytstdata4()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="储能DCDC母线侧电压设定:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign10.母线侧电压设定"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytstdata5()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>

              <el-tab-pane label="充电桩参数" name="eleventh">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="充电桩DCDC启动/停机命令:"
                            >
                              <el-row>
                                <el-col :span="6">
                                  <el-input
                                    :disabled="true"
                                    v-model="formLabelAlign11.启动停机命令"
                                  ></el-input>
                                </el-col>
                                <el-col :span="18">
                                  <el-button
                                    :class="
                                      this.formLabelAlign11.启动停机命令 == 1
                                        ? 'switchon'
                                        : 'switchoff'
                                    "
                                    @click="upykchadata1()"
                                    style="margin-left:20px;"
                                    >遥控</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥调：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="充电桩DCDC工作模式设置:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign11.工作模式设置"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytchadata1()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="充电桩DCDCA口设置电压:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign11.a口设置电压"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytchadata2()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="充电桩DCDCB口设置电压:"
                            >
                              <el-row>
                                <el-col :span="18">
                                  <el-input
                                    v-model="formLabelAlign11.b口设置电压"
                                  ></el-input>
                                </el-col>
                                <el-col :span="6">
                                  <el-button
                                    type="primary"
                                    @click="upytchadata3()"
                                    style="margin-left:20px;"
                                    >遥调</el-button
                                  >
                                </el-col>
                              </el-row>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane>

              <!-- <el-tab-pane label="空调DC参数" name="twelfth"> </el-tab-pane> -->

              <!-- <el-tab-pane label="直流配电柜参数" name="thirteenth">
                <el-row>
                  <div>
                    <el-row>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表1第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign141.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表1第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign141.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表2第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign142.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表2第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign142.第2路继电器"
                              ></el-input>
                            </el-form-item>
                          </el-form>
                          <span slot="footer" class="dialog">
                            <el-button @click="dialogVisible = false"
                              >取 消</el-button
                            >
                            <el-button type="primary" @click="upykdata()"
                              >确定</el-button
                            >
                          </span>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <el-row>
                          <span
                            style="color:#90F0D0;font-size:2rem;font-weight:blod;"
                            >遥控：</span
                          >
                        </el-row>
                        <div id="table14">
                          <el-form
                            :label-position="labelPosition"
                            label-width="280px"
                            :model="formLabelAlign2"
                            height="650px"
                            style="margin-right:10rem;margin-left:6rem;"
                          >
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表3第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign143.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表3第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign143.第2路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表4第1路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign144.第1路继电器"
                              ></el-input>
                            </el-form-item>
                            <el-form-item
                              class="formitem2"
                              label="直流配电柜电表4第2路继电器:"
                            >
                              <el-input
                                v-model="formLabelAlign144.第2路继电器"
                              ></el-input>
                            </el-form-item>
                          </el-form>
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </el-row>
              </el-tab-pane> -->
            </el-tabs>
          </el-main>
        </el-container>
      </el-container>

      <!-- 底部导航栏 -->

      <!-- 底部组件 -->
      <Bottom></Bottom>
    </el-container>
  </div>
</template>
<script>
// import echarts from 'echarts'
// import MyCircle from '../components/MyCircle.vue'
import Index from '~/components/index2'
import Bottom from '~/components/bottom'
export default {
  data() {
    return {
      activeIndex: '1',
      labelPosition: 'right',
      activeName: 'first',
      formLabelAlign1: {},
      formLabelAlign2: {},
      formLabelAlign3: {},
      formLabelAlign4: {},
      formLabelAlign5: {},
      // formLabelAlign51: {},
      // formLabelAlign52: {},
      // formLabelAlign53: {},
      // formLabelAlign54: {},
      formLabelAlign6: {},
      formLabelAlign7: {},
      // formLabelAlign71: {},
      // formLabelAlign72: {},
      // formLabelAlign73: {},
      // formLabelAlign74: {},
      // formLabelAlign75: {},
      // formLabelAlign76: {},
      // formLabelAlign77: {},
      // formLabelAlign78: {},
      formLabelAlign8: {},
      formLabelAlign9: {},
      formLabelAlign10: {},
      formLabelAlign11: {},
      formLabelAlign12: {},
      formLabelAlign13: {},
      formLabelAlign141: {},
      formLabelAlign142: {},
      formLabelAlign143: {},
      formLabelAlign144: {},
      formLabelAlign15: {}
    }
  },
  components: {
    Index,
    Bottom
  },
  created() {},

  mounted() {
    // this.findallverticalfan()
    // this.findallhorizontalfan()
    this.findallcchp()
    this.findallmmc()
    // this.findallcapacitance()
    this.findallcapacitancedcdc()
    // this.findallisolationcabinet()
    this.findalltotalloadloopdcdc()
    // this.findallintegratedequipment()
    this.findallpvdcdc()
    this.findallpvo()
    this.findalldcdc()
    this.findallacdc()
    this.findallstoragedcdc()
    this.findallchargingpile()
    // this.findallair()
    // this.findalldic()
    //  接受来自拓扑的参
    // console.log(
    //   '草泥马' +
    //     Object.prototype.toString
    //       .call(this.$route.query.activeName)
    //       .slice(8, -1)
    // )
    if (this.$route.query.activeName == undefined) {
      this.activeName = 'second'
    } else {
      this.activeName = this.$route.query.activeName
    }
  },

  methods: {
    // upykdata() {
    //   if (this.activeName == 'third') {
    //     let data = this.$qs.parse({
    //       DevType: 'MMC',
    //       DevSerialNumber: 'MMC',
    //       DataType: 'YK',
    //       开关控制: this.formLabelAlign3.开关控制,
    //       远程故障复归: this.formLabelAlign3.远程故障复归,
    //       直流CVCCCP: this.formLabelAlign3.直流CVCCCP,
    //       直流恒压控制: this.formLabelAlign3.直流恒流控制,
    //       直流恒功率控制: this.formLabelAlign3.直流恒功率控制
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'fourth') {
    //     let data = this.$qs.parse({
    //       DevType: '电容DCDC',
    //       DevSerialNumber: '电容DCDC',
    //       DataType: 'YK',
    //       系统开机: this.formLabelAlign4.系统开机,
    //       系统停机: this.formLabelAlign4.系统停机,
    //       系统清除故障PCS: this.formLabelAlign4.系统清除故障PCS
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'fifth') {
    //     let data = this.$qs.parse([
    //       {
    //         DevType: '隔离柜',
    //         DevSerialNumber: '隔离柜电表1',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign51.第1路继电器,
    //         第2路继电器: this.formLabelAlign51.第2路继电器
    //       },
    //       {
    //         DevType: '隔离柜',
    //         DevSerialNumber: '隔离柜电表2',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign52.第1路继电器,
    //         第2路继电器: this.formLabelAlign52.第2路继电器
    //       },
    //       {
    //         DevType: '隔离柜',
    //         DevSerialNumber: '隔离柜电表3',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign53.第1路继电器,
    //         第2路继电器: this.formLabelAlign53.第2路继电器
    //       },
    //       {
    //         DevType: '隔离柜',
    //         DevSerialNumber: '隔离柜电表4',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign54.第1路继电器,
    //         第2路继电器: this.formLabelAlign54.第2路继电器
    //       }
    //     ])
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'sixth') {
    //     let data = this.$qs.parse({
    //       DevType: '负荷总回路DCDC',
    //       DevSerialNumber: '负荷总回路DCDC',
    //       DataType: 'YK',
    //       启动停机命令: formLabelAlign6.启动停机命令
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'seventh') {
    //     let data = this.$qs.parse([
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表1',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign71.第1路继电器,
    //         第2路继电器: this.formLabelAlign71.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表2',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign72.第1路继电器,
    //         第2路继电器: this.formLabelAlign72.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表3',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign73.第1路继电器,
    //         第2路继电器: this.formLabelAlign73.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表4',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign74.第1路继电器,
    //         第2路继电器: this.formLabelAlign74.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表5',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign75.第1路继电器,
    //         第2路继电器: this.formLabelAlign75.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表6',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign76.第1路继电器,
    //         第2路继电器: this.formLabelAlign76.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表7',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign77.第1路继电器,
    //         第2路继电器: this.formLabelAlign77.第2路继电器
    //       },
    //       {
    //         DevType: '一体化设备',
    //         DevSerialNumber: '一体化设备电表8',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign78.第1路继电器,
    //         第2路继电器: this.formLabelAlign78.第2路继电器
    //       }
    //     ])
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'eighth') {
    //     let data = this.$qs.parse({
    //       DevType: '光伏DCDC',
    //       DevSerialNumber: '光伏DCDC',
    //       DataType: 'YK',
    //       启动停机命令: this.formLabelAlign8.启动停机命令,
    //       故障状态清除命令: this.formLabelAlign8.故障状态清除命令
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'ninth') {
    //     let data = this.$qs.parse({
    //       DevType: '交直流ACDC',
    //       DevSerialNumber: '交直流ACDC',
    //       DataType: 'YK',
    //       启动停机命令: this.formLabelAlign10.启动停机命令,
    //       故障状态清除命令: this.formLabelAlign10.故障状态清除命令
    //     })
    //     let data1 = this.$qs.parse({
    //       DevType: '交直流DCDC',
    //       DevSerialNumber: '交直流DCDC',
    //       DataType: 'YK',
    //       启动停机命令: this.formLabelAlign11.启动停机命令,
    //       故障状态清除命令: this.formLabelAlign11.故障状态清除命令
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data1
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'tenth') {
    //     let data = this.$qs.parse({
    //       DevType: '储能DCDC',
    //       DevSerialNumber: '储能DCDC',
    //       DataType: 'YK',
    //       启动停机命令: this.formLabelAlign12.启动停机命令,
    //       故障状态清除命令: this.formLabelAlign12.故障状态清除命令
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'eleventh') {
    //     let data = this.$qs.parse({
    //       DevType: '充电桩DCDC',
    //       DevSerialNumber: '充电桩DCDC',
    //       DataType: 'YK',
    //       启动停机命令: this.formLabelAlign13.启动停机命令
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'thirteenth') {
    //     let data = this.$qs.parse([
    //       {
    //         DevType: '直流配电柜',
    //         DevSerialNumber: '直流配电柜1',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign141.第1路继电器,
    //         第2路继电器: this.formLabelAlign141.第2路继电器
    //       },
    //       {
    //         DevType: '直流配电柜',
    //         DevSerialNumber: '直流配电柜2',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign142.第1路继电器,
    //         第2路继电器: this.formLabelAlign142.第2路继电器
    //       },
    //       {
    //         DevType: '直流配电柜',
    //         DevSerialNumber: '直流配电柜3',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign143.第1路继电器,
    //         第2路继电器: this.formLabelAlign143.第2路继电器
    //       },
    //       {
    //         DevType: '直流配电柜',
    //         DevSerialNumber: '直流配电柜4',
    //         DataType: 'YK',
    //         第1路继电器: this.formLabelAlign144.第1路继电器,
    //         第2路继电器: this.formLabelAlign144.第2路继电器
    //       }
    //     ])
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   }
    // },
    // upytdata() {
    //   if (this.activeName == 'second') {
    //     let data = this.$qs.parse({
    //       DevType: '三联供',
    //       DevSerialNumber: '三联供',
    //       DataType: 'YT',
    //       PCL系统模式写入: this.formLabelAlign1.plc系统模式写入,
    //       PCL远程启动: this.formLabelAlign1.plc远程启动,
    //       PCL远程停机: this.formLabelAlign1.plc远程停机,
    //       PCL远程急停: this.formLabelAlign1.plc远程急停,
    //       PCLSP_溴化锂出水温度设定: this.formLabelAlign1
    //         .plcsp_溴化锂出水温度设定
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'third') {
    //     let data = this.$qs.parse({
    //       DevType: 'MMC',
    //       DevSerialNumber: 'MMC',
    //       DataType: 'YT',
    //       直流侧电压控制值: this.formLabelAlign3.直流侧电压控制值,
    //       直侧输出电流控制值: this.formLabelAlign3.直侧输出电流控制值,
    //       直侧输入电流控制值: this.formLabelAlign3.直侧输入电流控制值,
    //       直流输出功率控制值: this.formLabelAlign3.直流输出功率控制值,
    //       直流输入功率控制值: this.formLabelAlign3.直流输入功率控制值
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'fourth') {
    //     let data = this.$qs.parse({
    //       DevType: '电容DCDC',
    //       DevSerialNumber: '电容DCDC',
    //       DataType: 'YT',
    //       低压侧支路1直流控制模式: this.formLabelAlign4.低压侧支路1直流控制模式,
    //       低压侧支路1直流电流设置: this.formLabelAlign4.低压侧支路1直流电流设置,
    //       低压侧支路1直流功率设置: this.formLabelAlign4.低压侧支路1直流功率设置
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'sixth') {
    //     let data = this.$qs.parse({
    //       DevType: '负荷总回路DCDC',
    //       DevSerialNumber: '负荷总回路DCDC',
    //       DataType: 'YT',
    //       工作模式: this.formLabelAlign6.工作模式,
    //       a口设置电压: this.formLabelAlign6.a口设置电压,
    //       b口设置电压: this.formLabelAlign6.b口设置电压
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'eighth') {
    //     let data = this.$qs.parse({
    //       DevType: '光伏DCDC',
    //       DevSerialNumber: '光伏DCDC',
    //       DataType: 'YT',
    //       工作模式设定: this.formLabelAlign8.工作模式设定,
    //       输入侧电压设定: this.formLabelAlign8.输入侧电压设定,
    //       电池侧恒压电流设定低压侧: this.formLabelAlign8
    //         .电池侧恒压电流设定低压侧,
    //       电池侧电压设定: this.formLabelAlign8.电池侧电压设定,
    //       控制命令: this.formLabelAlign9.控制命令,
    //       控制模式: this.formLabelAlign9.控制模式,
    //       功率限值: this.formLabelAlign9.功率限值
    //     })
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'ninth') {
    //     let data = this.$qs.parse({
    //       DevType: '交直流ACDC',
    //       DevSerialNumber: '交直流ACDC',
    //       DataType: 'YT',
    //       工作模式设置: this.formLabelAlign10.工作模式设置,
    //       直流电压设置: this.formLabelAlign10.直流电压设置,
    //       直流电压设置: this.formLabelAlign10.直流电压设置,
    //       恒压模式电流限制: this.formLabelAlign10.恒压模式电流限制,
    //       有功功率设定: this.formLabelAlign10.有功功率设定,
    //       无功Q设定: this.formLabelAlign10.无功Q设定,
    //       交流电压设置: this.formLabelAlign10.交流电压设置,
    //       交流频率设置: this.formLabelAlign10.交流频率设置
    //     })
    //     let data2 = this.$qs.parse({
    //       DevType: '交直流DCDC',
    //       DevSerialNumber: '交直流DCDC',
    //       DataType: 'YT',
    //       工作模式设定: this.formLabelAlign11.工作模式设定,
    //       电池侧恒压输出电压设定: this.formLabelAlign11.电池侧恒压输出电压设定,
    //       电池侧恒压模式限流设定: this.formLabelAlign11.电池侧恒压模式限流设定,
    //       恒压模式电流限制: this.formLabelAlign11.恒功率模式功率值设定,
    //       恒功率模式功率值设定: this.formLabelAlign11.母线侧电压
    //     })
    //     //上传ACDC
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //     //上传DCDC
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data2
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'tenth') {
    //     let data = this.$qs.parse({
    //       DevType: '储能DCDC',
    //       DevSerialNumber: '储能DCDC',
    //       DataType: 'YT',
    //       工作模式设定: this.formLabelAlign12.工作模式设定,
    //       电池侧电压设定: this.formLabelAlign12.电池侧电压设定,
    //       电池侧恒压电流设定低压侧: this.formLabelAlign12
    //         .电池侧恒压电流设定低压侧,
    //       功率设定: this.formLabelAlign12.功率设定,
    //       母线侧电压设定: this.formLabelAlign12.母线侧电压设定
    //     })
    //     //上传ACDC
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   } else if (this.activeName == 'eleventh') {
    //     let data = this.$qs.parse({
    //       DevType: '充电桩DCDC',
    //       DevSerialNumber: '充电桩DCDC',
    //       DataType: 'YT',
    //       工作模式设置: this.formLabelAlign13.工作模式设置,
    //       a口设置电压: this.formLabelAlign13.a口设置电压,
    //       b口设置电压: this.formLabelAlign13.b口设置电压
    //     })
    //     //上传ACDC
    //     this.$axios({
    //       headers: {
    //         Authorization: ' ',
    //         'content-Type': 'application/json;charset=UTF-8'
    //         //  Accept: 'application/json;charset=UTF-8'
    //       },
    //       method: 'post',
    //       url: 'http://127.0.0.1:8082/acceptdata/test',
    //       data: data
    //     }).then(res => {
    //       this.$message.success('上传成功')
    //     })
    //   }
    // },
    //光伏优化器下令方式
    //遥调
    upytpvodata1() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: '光伏优化器控制命令',
        DataType: 'YT',

        ID: '769',
        Value: this.formLabelAlign1.控制命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvodata2() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: ' 光伏优化器控制模式',
        DataType: 'YT',

        ID: '771',
        Value: this.formLabelAlign1.控制模式
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvodata3() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: '光伏优化器功率限值',
        DataType: 'YT',

        ID: '772',
        Value: this.formLabelAlign1.功率限值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //三联供下令方式
    //遥调
    upytcchpdata1() {
      let data = this.$qs.parse({
        DevType: '三联供',
        DevSerialNumber: ' 三联供PLC系统模式写入',
        DataType: 'YT',

        ID: '505',
        Value: this.formLabelAlign2.plc系统模式写入
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcchpdata2() {
      let data = this.$qs.parse({
        DevType: '三联供',
        DevSerialNumber: '三联供PLC系统模式写入',
        DataType: 'YT',
        ID: '506',
        Value: this.formLabelAlign2.plc远程启动
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcchpdata3() {
      let data = this.$qs.parse({
        DevType: '三联供',
        DevSerialNumber: 'plc远程停机',
        DataType: 'YT',
        ID: '507',
        Value: this.formLabelAlign2.plc远程停机
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcchpdata4() {
      let data = this.$qs.parse({
        DevType: '三联供',
        DevSerialNumber: '三联供PLC远程急停',
        DataType: 'YT',
        ID: '508',
        Value: this.formLabelAlign2.plc远程急停
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcchpdata5() {
      let data = this.$qs.parse({
        DevType: '三联供',
        DevSerialNumber: '三联供PLC SP_溴化锂出水温度设定',
        DataType: 'YT',
        ID: '509',
        Value: this.formLabelAlign2.plcsp_溴化锂出水温度设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //MMC遥控遥调下令
    //遥控
    upykmmcdata1() {
      if (this.formLabelAlign3.开关机状态 == 1) {
        this.formLabelAlign3.开关机状态 = 0
      } else if (this.formLabelAlign3.开关机状态 == 0) {
        this.formLabelAlign3.开关机状态 = 1
      }
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '开关控制',
        DataType: 'YK',
        ID: '45',
        Value: this.formLabelAlign3.开关机状态
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },

    upykmmcdata2() {
      this.formLabelAlign3.远程故障复归 = 1
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '远程故障复归',
        DataType: 'YK',
        ID: '46',
        Value: this.formLabelAlign3.远程故障复归
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('远程故障复归命令下达')
      })
    },
    upykmmcdata3() {
      if (this.formLabelAlign3.直流CVCCCP == 1) {
        this.formLabelAlign3.直流CVCCCP = 0
      } else if (this.formLabelAlign3.直流CVCCCP == 0) {
        this.formLabelAlign3.直流CVCCCP = 1
      }
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流CVCCCP',
        DataType: 'YK',
        ID: '47',
        Value: this.formLabelAlign3.直流CVCCCP
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    upykmmcdata4() {
      if (this.formLabelAlign3.直流恒压控制 == 1) {
        this.formLabelAlign3.直流恒压控制 = 0
      } else if (this.formLabelAlign3.直流恒压控制 == 0) {
        this.formLabelAlign3.直流恒压控制 = 1
      }
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流恒压控制',
        DataType: 'YK',
        ID: '48',
        Value: this.formLabelAlign3.直流恒压控制
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    upykmmcdata5() {
      if (this.formLabelAlign3.直流恒流控制 == 1) {
        this.formLabelAlign3.直流恒流控制 = 0
      } else if (this.formLabelAlign3.直流恒流控制 == 0) {
        this.formLabelAlign3.直流恒流控制 = 1
      }
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流恒流控制',
        DataType: 'YK',
        ID: '49',
        Value: this.formLabelAlign3.直流恒流控制
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    upykmmcdata6() {
      if (this.formLabelAlign3.直流恒功率控制 == 1) {
        this.formLabelAlign3.直流恒功率控制 = 0
      } else if (this.formLabelAlign3.直流恒功率控制 == 0) {
        this.formLabelAlign3.直流恒功率控制 = 1
      }
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流恒功率控制',
        DataType: 'YK',
        ID: '50',
        Value: this.formLabelAlign3.直流恒功率控制
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    //遥调
    upytmmcdata1() {
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流侧电压控制值',
        DataType: 'YT',
        ID: '1049',
        Value: this.formLabelAlign3.直流侧电压控制值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytmmcdata2() {
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直侧输出电流控制值',
        DataType: 'YT',
        ID: '1050',
        Value: this.formLabelAlign3.直侧输出电流控制值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytmmcdata3() {
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直侧输入电流控制值',
        DataType: 'YT',
        ID: '1051',
        Value: this.formLabelAlign3.直侧输入电流控制值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytmmcdata4() {
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流输出功率控制值',
        DataType: 'YT',
        ID: '1052',
        Value: this.formLabelAlign3.直流输出功率控制值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytmmcdata5() {
      let data = this.$qs.parse({
        DevType: 'MMC',
        DevSerialNumber: '直流输入功率控制值',
        DataType: 'YT',
        ID: '1053',
        Value: this.formLabelAlign3.直流输入功率控制值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },

    //电容DCDC遥控遥调
    //遥控
    upykcapdata1() {
      if (this.formLabelAlign4.系统开机 == 1) {
        this.formLabelAlign4.系统开机 = 0
      } else if (this.formLabelAlign4.系统开机 == 0) {
        this.formLabelAlign4.系统开机 = 1
      }
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '系统开机',
        DataType: 'YK',
        ID: '42',
        Value: this.formLabelAlign4.系统开机
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已发送')
      })
    },
    upykcapdata2() {
      if (this.formLabelAlign4.系统停机 == 1) {
        this.formLabelAlign4.系统停机 = 0
      } else if (this.formLabelAlign4.系统停机 == 0) {
        this.formLabelAlign4.系统停机 = 1
      }
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '系统停机',
        DataType: 'YK',
        ID: '43',
        Value: this.formLabelAlign4.系统停机
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    upykcapdata3() {
      this.formLabelAlign4.系统清除故障PCS = 1
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '系统清除故障PCS',
        DataType: 'YK',
        ID: '44',
        Value: this.formLabelAlign4.系统清除故障PCS
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('系统清除故障命令已下达')
      })
    },
    //遥调
    upytcapdata1() {
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '低压侧支路1直流控制模式',
        DataType: 'YT',
        ID: '995',
        Value: this.formLabelAlign4.低压侧支路1直流控制模式
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcapdata2() {
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '低压侧支路1直流电流设置',
        DataType: 'YT',
        ID: '996',
        Value: this.formLabelAlign4.低压侧支路1直流电流设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytcapdata3() {
      let data = this.$qs.parse({
        DevType: '电容DCDC',
        DevSerialNumber: '低压侧支路1直流功率设置',
        DataType: 'YT',
        ID: '997',
        Value: this.formLabelAlign4.低压侧支路1直流功率设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //负荷总回路
    //遥控
    upykloaddata1() {
      if (this.formLabelAlign5.启动停机命令 == 1) {
        this.formLabelAlign5.启动停机命令 = 0
      } else if (this.formLabelAlign5.启动停机命令 == 0) {
        this.formLabelAlign5.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: '负荷总回路',
        DevSerialNumber: '启动停机命令',
        DataType: 'YK',
        ID: '0',
        Value: this.formLabelAlign5.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已下达')
      })
    },
    //遥调
    upytloaddata1() {
      let data = this.$qs.parse({
        DevType: '负荷总回路',
        DevSerialNumber: '工作模式',
        DataType: 'YT',
        ID: '53',
        Value: this.formLabelAlign5.工作模式
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytloaddata2() {
      let data = this.$qs.parse({
        DevType: '负荷总回路',
        DevSerialNumber: 'a口设置电压',
        DataType: 'YT',
        ID: '54',
        Value: this.formLabelAlign5.a口设置电压
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytloaddata3() {
      let data = this.$qs.parse({
        DevType: '负荷总回路',
        DevSerialNumber: 'b口设置电压 ',
        DataType: 'YT',
        ID: '55',
        Value: this.formLabelAlign5.b口设置电压
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //光伏设备
    //遥控
    upykpvdata1() {
      if (this.formLabelAlign6.启动停机命令 == 1) {
        this.formLabelAlign6.启动停机命令 = 0
      } else if (this.formLabelAlign6.启动停机命令 == 0) {
        this.formLabelAlign6.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '启动停机命令 ',
        DataType: 'YK',
        ID: '1',
        Value: this.formLabelAlign6.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已经下达')
      })
    },
    upykpvdata2() {
      this.formLabelAlign6.故障状态清除命令 = 1
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '故障状态清除命令 ',
        DataType: 'YK',
        ID: '2',
        Value: this.formLabelAlign6.故障状态清除命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('故障清除命令已经下达')
      })
    },
    //遥调
    upytpvdata1() {
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '工作模式设定 ',
        DataType: 'YT',
        ID: '79',
        Value: this.formLabelAlign6.工作模式设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata2() {
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '输入侧电压设定 ',
        DataType: 'YT',
        ID: '80',
        Value: this.formLabelAlign6.输入侧电压设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata3() {
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '电池侧恒压电流设定低压侧 ',
        DataType: 'YT',
        ID: '81',
        Value: this.formLabelAlign6.电池侧恒压电流设定低压侧
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata4() {
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '功率设定 ',
        DataType: 'YT',
        ID: '84',
        Value: this.formLabelAlign6.功率设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata5() {
      let data = this.$qs.parse({
        DevType: '光伏DCDC',
        DevSerialNumber: '电池侧电压设定 ',
        DataType: 'YT',
        ID: '87',
        Value: this.formLabelAlign6.电池侧电压设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata6() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: '控制命令 ',
        DataType: 'YT',
        ID: '769',
        Value: this.formLabelAlign7.控制命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata7() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: '控制模式 ',
        DataType: 'YT',
        ID: '771',
        Value: this.formLabelAlign7.控制模式
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytpvdata8() {
      let data = this.$qs.parse({
        DevType: '光伏优化器',
        DevSerialNumber: '功率限值 ',
        DataType: 'YT',
        ID: '772',
        Value: this.formLabelAlign7.功率限值
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //交直流ACDC
    //遥控
    upykacdcdata1() {
      if (this.formLabelAlign8.启动停机命令 == 1) {
        this.formLabelAlign8.启动停机命令 = 0
      } else if (this.formLabelAlign8.启动停机命令 == 0) {
        this.formLabelAlign8.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '启动停机命令 ',
        DataType: 'YK',
        ID: '5',
        Value: this.formLabelAlign8.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已经下达')
      })
    },
    upykacdcdata2() {
      this.formLabelAlign8.故障状态清除命令 = 1
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '故障状态清除命令 ',
        DataType: 'YK',
        ID: '6',
        Value: this.formLabelAlign8.故障状态清除命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('故障状态清除命令已经下达')
      })
    },
    //遥调
    upytacdcdata1() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '工作模式设置 ',
        DataType: 'YT',
        ID: '140',
        Value: this.formLabelAlign8.工作模式设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata2() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '直流电压设置 ',
        DataType: 'YT',
        ID: '141',
        Value: this.formLabelAlign8.直流电压设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata3() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '恒压模式电流限制 ',
        DataType: 'YT',
        ID: '142',
        Value: this.formLabelAlign8.恒压模式电流限制
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata4() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '有功功率设定 ',
        DataType: 'YT',
        ID: '143',
        Value: this.formLabelAlign8.有功功率设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata5() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '无功Q设定 ',
        DataType: 'YT',
        ID: '146',
        Value: this.formLabelAlign8.无功Q设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata6() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '交流电压设置 ',
        DataType: 'YT',
        ID: '148',
        Value: this.formLabelAlign8.交流电压设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytacdcdata7() {
      let data = this.$qs.parse({
        DevType: 'ACDC',
        DevSerialNumber: '交流频率设置 ',
        DataType: 'YT',
        ID: '149',
        Value: this.formLabelAlign8.交流频率设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //交直流DCDC
    //遥控
    upykdcdcdata1() {
      if (this.formLabelAlign9.启动停机命令 == 1) {
        this.formLabelAlign9.启动停机命令 = 0
      } else if (this.formLabelAlign9.启动停机命令 == 0) {
        this.formLabelAlign9.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '启动停机命令 ',
        DataType: 'YK',
        ID: '7',
        Value: this.formLabelAlign9.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已经下达')
      })
    },
    upykdcdcdata2() {
      this.formLabelAlign9.故障状态清除命令 = 1
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '故障状态清除命令 ',
        DataType: 'YK',
        ID: '8',
        Value: this.formLabelAlign9.故障状态清除命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('故障状态清除命令已经下达')
      })
    },
    //遥调
    upytdcdcdata1() {
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '工作模式设定 ',
        DataType: 'YT',
        ID: '173',
        Value: this.formLabelAlign9.工作模式设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytdcdcdata2() {
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '电池侧恒压输出电压设定 ',
        DataType: 'YT',
        ID: '174',
        Value: this.formLabelAlign9.电池侧恒压输出电压设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytdcdcdata3() {
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '电池侧恒压模式限流设定 ',
        DataType: 'YT',
        ID: '175',
        Value: this.formLabelAlign9.电池侧恒压模式限流设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytdcdcdata4() {
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '恒功率模式功率值设定 ',
        DataType: 'YT',
        ID: '178',
        Value: this.formLabelAlign9.恒功率模式功率值设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytdcdcdata5() {
      let data = this.$qs.parse({
        DevType: 'DCDC',
        DevSerialNumber: '母线侧电压 ',
        DataType: 'YT',
        ID: '181',
        Value: this.formLabelAlign9.母线侧电压
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //储能DCDC
    // 遥控
    upykstdata1() {
      if (this.formLabelAlign10.启动停机命令 == 1) {
        this.formLabelAlign10.启动停机命令 = 0
      } else if (this.formLabelAlign10.启动停机命令 == 0) {
        this.formLabelAlign10.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '启动停机命令 ',
        DataType: 'YK',
        ID: '3',
        Value: this.formLabelAlign10.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令已经下达')
      })
    },
    upykstdata2() {
      this.formLabelAlign10.故障状态清除命令 = 1
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '故障状态清除命令 ',
        DataType: 'YK',
        ID: '4',
        Value: this.formLabelAlign10.故障状态清除命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('故障状态清除命令已经下达')
      })
    },
    //遥调：

    upytstdata1() {
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '工作模式设定 ',
        DataType: 'YT',
        ID: '111',
        Value: this.formLabelAlign10.工作模式设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytstdata2() {
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '电池侧电压设定 ',
        DataType: 'YT',
        ID: '112',
        Value: this.formLabelAlign10.电池侧电压设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytstdata3() {
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '电池侧电压设定 ',
        DataType: 'YT',
        ID: '113',
        Value: this.formLabelAlign10.电池侧恒压电流设定低压侧
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytstdata4() {
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '电池侧电压设定 ',
        DataType: 'YT',
        ID: '116',
        Value: this.formLabelAlign10.功率设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytstdata5() {
      let data = this.$qs.parse({
        DevType: '储能',
        DevSerialNumber: '母线侧电压设定 ',
        DataType: 'YT',
        ID: '119',
        Value: this.formLabelAlign10.母线侧电压设定
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    //充电桩
    //遥控
    upykchadata1() {
      if (this.formLabelAlign11.启动停机命令 == 1) {
        this.formLabelAlign11.启动停机命令 = 0
      } else if (this.formLabelAlign11.启动停机命令 == 0) {
        this.formLabelAlign11.启动停机命令 = 1
      }
      let data = this.$qs.parse({
        DevType: '充电桩',
        DevSerialNumber: '启动停机命令 ',
        DataType: 'YK',
        ID: '9',
        Value: this.formLabelAlign11.启动停机命令
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥控命令下达成功')
      })
    },
    //遥调
    upytchadata1() {
      let data = this.$qs.parse({
        DevType: '充电桩',
        DevSerialNumber: '工作模式设置 ',
        DataType: 'YT',
        ID: '201',
        Value: this.formLabelAlign11.工作模式设置
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytchadata2() {
      let data = this.$qs.parse({
        DevType: '充电桩',
        DevSerialNumber: 'a口设置电压 ',
        DataType: 'YT',
        ID: '202',
        Value: this.formLabelAlign11.a口设置电压
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },
    upytchadata3() {
      let data = this.$qs.parse({
        DevType: '充电桩',
        DevSerialNumber: 'b口设置电压 ',
        DataType: 'YT',
        ID: '203',
        Value: this.formLabelAlign11.b口设置电压
      })
      this.$axios({
        headers: {
          Authorization: ' ',
          'content-Type': 'application/json;charset=UTF-8'
          //  Accept: 'application/json;charset=UTF-8'
        },
        method: 'post',
        url: 'http://127.0.0.1:8082/acceptdata/test',
        data: data
      }).then(res => {
        this.$message.success('遥调命令已经下达')
      })
    },

    // findallverticalfan() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/verticalfan/searchall'
    //   }).then(res => {
    //     console.log(res.data)
    //     this.tableData = res.data
    //     // this.tableData5 = res.data
    //     // for (let i = 0; i < res.data.length; i++) {
    //     //   this.tableData5[i].password = '********'
    //     // }
    //   })
    // },
    // findallhorizontalfan() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/horizontalfan/searchall'
    //   }).then(res => {
    //     console.log(res.data)
    //     this.tableData2 = res.data
    //     // this.tableData5 = res.data
    //     // for (let i = 0; i < res.data.length; i++) {
    //     //   this.tableData5[i].password = '********'
    //     // }
    //   })
    // },
    // 第二个位置
    findallcchp() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/cchp/searchall'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign2 = res.data[0]
      })
    },
    // 第三个
    findallmmc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/mmc/searchall'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign3 = res.data[0]

        // for (let i = 0; i < res.data.length; i++) {
        //   this.tableData5[i].password = '********'
        // }
      })
    },
    // findallcapacitance() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/capacitance/searchall'
    //   }).then(res => {
    //     console.log(res.data)

    //   })
    // },
    // 第四个位置
    findallcapacitancedcdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/capacitance/searchalldcdc'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign4 = res.data[0]
      })
    },
    // findallisolationcabinet() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/isolationcabinet/searchfour'
    //   }).then(res => {
    //     console.log(res.data)
    //     this.formLabelAlign51 = res.data[3]
    //     this.formLabelAlign52 = res.data[2]
    //     this.formLabelAlign53 = res.data[1]
    //     this.formLabelAlign54 = res.data[0]
    //   })
    // },
    // 第五个位置
    findalltotalloadloopdcdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/totalloadloopdcdc/searchall'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign5 = res.data[0]
      })
    },
    findallintegratedequipment() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/integratedequipment/searchfour'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign71 = res.data[7]
        this.formLabelAlign72 = res.data[6]
        this.formLabelAlign73 = res.data[5]
        this.formLabelAlign74 = res.data[4]
        this.formLabelAlign75 = res.data[3]
        this.formLabelAlign76 = res.data[2]
        this.formLabelAlign77 = res.data[1]
        this.formLabelAlign78 = res.data[0]
      })
    },
    // 第六个位置
    findallpvdcdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/pvdcdc/searchall'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign6 = res.data[0]
      })
    },
    // 第一个位置
    findallpvo() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/pvdcdc/searchallpvo'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign1 = res.data[0]
      })
    },

    //第八个位置
    findallacdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/acdc/searchallacdc'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign8 = res.data[0]
      })
    },
    //第九个位置
    findalldcdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/acdc/searchalldcdc'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign9 = res.data[0]
      })
    },
    //第十个位置
    findallstoragedcdc() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/storagedcdc/searchalldata'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign10 = res.data[0]
      })
    },
    // 第十一个位置
    findallchargingpile() {
      this.$axios({
        method: 'get',
        // params: {
        //   name: '系统结构'
        // },
        url: 'http://127.0.0.1:8082/chargingpile/searchall'
      }).then(res => {
        console.log(res.data)
        this.formLabelAlign11 = res.data[0]
      })
    },

    // findallair() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/airconditionerdcdc/searchall'
    //   }).then(res => {
    //     console.log(res.data)
    //   })
    // },
    // findalldic() {
    //   this.$axios({
    //     method: 'get',
    //     // params: {
    //     //   name: '系统结构'
    //     // },
    //     url: 'http://127.0.0.1:8082/dcdistribution/searchall'
    //   }).then(res => {
    //     console.log(res.data)
    //     this.formLabelAlign141 = res.data[3]
    //     this.formLabelAlign142 = res.data[2]
    //     this.formLabelAlign143 = res.data[1]
    //     this.formLabelAlign144 = res.data[0]
    //   })
    // },
    getRowClass({ row, column, rowIndex, columnIndex }) {
      return 'background:#03282A;'
    },
    //设置表头颜色和背景
    getRowClass2({ row, column, rowIndex, columnIndex }) {
      return 'background:#03282A;color:#FEFEFE;'
    },
    tableRowClassName({ row, column, rowIndex, columnIndex }) {
      // return 'background:#03282A;color:#FEFEFE;'
    },
    handleDelete(index, row) {
      alert(index)
      //  this.$router.push({path:'/details',query: {id:item.device_id}})
      this.$router.push({ path: '/indexx' })
      console.log(index, row)
    },
    handleClick(tab, event) {
      console.log(tab, event)
    },

    logout() {
      window.sessionStorage.clear()
      this.$router.push('/login')
    },
    handleSelect(key, keyPath) {
      console.log(key, keyPath)
    },
    handler({ BMap, map }) {
      console.log(BMap, map)
    },
    infoWindowClose(i) {
      //  alert("关闭提示窗"+i.showFlag)
      return (i.showFlag = false)
    },
    infoWindowOpen(i) {
      // alert("打开提示窗"+i.showFlag)
      return (i.showFlag = true)
    },
    opencarinfo(item) {
      //  this.$router.push({name:'details',params: {id:'1'}})
      // alert("执行")

      this.$router.push({ path: '/details', query: { id: item.device_id } })
    }
  }
}
</script>
<style lang="scss">
.el-tabs {
  width: 100%;
  color: white;
  background-image: url(../../assets/images/新UI12.png);
  background-size:100% 100%;
  background-repeat:no-repeat;
}
.el-tabs__item {
  padding: 0 20px;
  height: 40px;
  box-sizing: border-box;
  line-height: 40px;
  display: inline-block;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: #e3e5ea;
  position: relative;
}
</style>
<style lang="scss" scoped>
.switchon {
  background-color: rgba(248, 25, 9, 1);
  color: white;
}
.switchoff {
  background-color: rgba(18, 232, 60, 1);
  color: white;
}
#allmap {
  height: 600px;
  color: white;
  padding-left: 50px;
  padding-right: 50px;
  margin-top: 40px;
}

.body {
  width: 100%;
  height: 100%;
  margin-top: 0px;

  background-image: url(../../assets/images/新UI12.png);
}
.el-main {
  // margin-left: 30px;
  // width: 100%;
  // height: 700px;
  // margin-top: 40px;
  // background-image: url(../../assets/images/新UI23.png);
  // background-repeat: no-repeat;
}
.dialog {
  margin-left: 70%;
}
#table14 {
  width: 80%;
  height: 650px;
  margin-left: 10%;
  padding-top: 6rem;
  // -right: 6rem;
  background-image: url(../../assets/images/新UI16.png);
  background-size: 100% 100%;
  overflow: auto;
}
.el-table {
  border-radius: 0px;
  background-color: #005a5b;
  color: #66b1ff;
}
</style>
